package com.ruoyi.customerSample.service.impl;

import java.util.List;

import com.ruoyi.customerSample.domain.CustomerFeedback;
import com.ruoyi.customerSample.mapper.CustomerFeedbackMapper;
import com.ruoyi.customerSample.service.ICustomerFeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 原因解决反馈Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-10-13
 */
@Service
public class CustomerFeedbackServiceImpl implements ICustomerFeedbackService
{
    @Autowired(required = false)
    private CustomerFeedbackMapper customerFeedbackMapper;

    /**
     * 查询原因解决反馈
     * 
     * @param id 原因解决反馈主键
     * @return 原因解决反馈
     */
    @Override
    public CustomerFeedback selectCustomerFeedbackById(Long id)
    {
        return customerFeedbackMapper.selectCustomerFeedbackById(id);
    }

    /**
     * 查询原因解决反馈列表
     * 
     * @param customerFeedback 原因解决反馈
     * @return 原因解决反馈
     */
    @Override
    public List<CustomerFeedback> selectCustomerFeedbackList(CustomerFeedback customerFeedback)
    {
        return customerFeedbackMapper.selectCustomerFeedbackList(customerFeedback);
    }

    /**
     * 新增原因解决反馈
     * 
     * @param customerFeedback 原因解决反馈
     * @return 结果
     */
    @Override
    public int insertCustomerFeedback(CustomerFeedback customerFeedback)
    {
        return customerFeedbackMapper.insertCustomerFeedback(customerFeedback);
    }

    /**
     * 修改原因解决反馈
     * 
     * @param customerFeedback 原因解决反馈
     * @return 结果
     */
    @Override
    public int updateCustomerFeedback(CustomerFeedback customerFeedback)
    {
        return customerFeedbackMapper.updateCustomerFeedback(customerFeedback);
    }

    /**
     * 批量删除原因解决反馈
     * 
     * @param ids 需要删除的原因解决反馈主键
     * @return 结果
     */
    @Override
    public int deleteCustomerFeedbackByIds(Long[] ids)
    {
        return customerFeedbackMapper.deleteCustomerFeedbackByIds(ids);
    }

    /**
     * 删除原因解决反馈信息
     * 
     * @param id 原因解决反馈主键
     * @return 结果
     */
    @Override
    public int deleteCustomerFeedbackById(Long id)
    {
        return customerFeedbackMapper.deleteCustomerFeedbackById(id);
    }
}
